
import {RepairCountParams,RepairParams,AddInfo} from './type'
import {get,post} from '../../utils/request' 
export const getCountsList=(params:RepairCountParams)=>get("repairs/getCountsList",params)

//获取维修列表
export const getList=(params:RepairParams)=>get("repairs/list",params)

//批量删除
export const deleteAll=(ids:number[])=>post("repairs/deleteall",{ids})
//单条删除
export const del=(id:number)=>get("repairs/delete",{id})
//添加
export const add=(data:AddInfo)=> post("repairs/add",data)
//获取维修类型
export const repairsTypeList=():Promise<any> => get("repairstype/list",{psize:100})
//获取维修状态
export const repairStateList=():Promise<any> => get("repairstate/list",{psize:100})
